package com.bw.edu.service;

import com.bw.edu.mapper.OrderInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class OrderInfoServiceImpl implements OrderInfoService{
    @Autowired
    OrderInfoMapper orderInfoMapper;

    // 各章节播放统计
    @Override
    public List<Map> getListByChapter() {
        return orderInfoMapper.getListByChapter();
    }


    // 1.2各试卷成绩分布
    @Override
    public Map getListByScore() {
        return orderInfoMapper.getListByScore();
    }

    //1.3各省份交易统计
    @Override
    public List<Map> getListByProvince() {
        return orderInfoMapper.getListByProvince();
    }

    //1.4交易综合统计
    @Override
    public Map getOrderAmount() {
        return orderInfoMapper.getOrderAmount();
    }

    // 1.2各试卷成绩分布
    @Override
    public List<Map> getListByScore2() {
        return orderInfoMapper.getListByScore2();
    }
}
